package com.fhz.a2102shopjava.ui.mine;

import android.view.View;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;

import com.fhz.a2102shopjava.base.BaseViewModel;
import com.fhz.a2102shopjava.callback.ApiResponse;

import javax.inject.Inject;

import dagger.hilt.android.lifecycle.HiltViewModel;
import retrofit2.http.Field;

@HiltViewModel
public class MineViewModel extends ViewModel {
    @Inject
    MineRepository mMineRepository;
    @Inject
    public MineViewModel() {
    }

    public LiveData<ApiResponse<String>> getQiNiuToken(){
        return mMineRepository.getQiNiuToken();
    }

    /**
     *更新头像
     */
    public LiveData<ApiResponse<String>> updateUserAvatar( String nickname, String headImg){
        return mMineRepository.updateUserAvatar(nickname, headImg);
    }




}